package com.ygqh.baby.service.wechat.model.good;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * 好物圈——发票信息
 *
 * @Author: sunshuo
 * @Date: 2019/5/21 12:02
 * @Version: 1.0
 */
public class GoodInvoice implements Serializable {

	private static final long serialVersionUID = -7732198183686204883L;

	/**
	 * 抬头类型，0：单位，1：个人	必填
	 */
	private int type;

	/**
	 * 发票抬头	必填
	 */
	private String title;

	/**
	 * 发票税号	非必填
	 */
	private String taxNumber;

	/**
	 * 单位地址	非必填
	 */
	private String companyAddress;

	/**
	 * 手机号码	非必填
	 */
	private String telephone;

	/**
	 * 银行名称	非必填
	 */
	private String bankName;

	/**
	 * 银行账号	非必填
	 */
	private String bankAccount;

	/**
	 * 发票详情页（小程序页面）	非必填
	 */
	private GoodInvoiceDetailPage invoiceDetailPage;

	@JSONField(name = "type")
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	@JSONField(name = "title")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@JSONField(name = "tax_number")
	public String getTaxNumber() {
		return taxNumber;
	}

	public void setTaxNumber(String taxNumber) {
		this.taxNumber = taxNumber;
	}

	@JSONField(name = "company_address")
	public String getCompanyAddress() {
		return companyAddress;
	}

	public void setCompanyAddress(String companyAddress) {
		this.companyAddress = companyAddress;
	}

	@JSONField(name = "telephone")
	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@JSONField(name = "bank_name")
	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	@JSONField(name = "bank_account")
	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	@JSONField(name = "invoice_detail_page")
	public GoodInvoiceDetailPage getInvoiceDetailPage() {
		return invoiceDetailPage;
	}

	public void setInvoiceDetailPage(GoodInvoiceDetailPage invoiceDetailPage) {
		this.invoiceDetailPage = invoiceDetailPage;
	}

	@Override
	public String toString() {
		return "GoodInvoice{" +
				"type=" + type +
				", title='" + title + '\'' +
				", taxNumber='" + taxNumber + '\'' +
				", companyAddress='" + companyAddress + '\'' +
				", telephone='" + telephone + '\'' +
				", bankAccount='" + bankAccount + '\'' +
				", invoiceDetailPage=" + invoiceDetailPage +
				'}';
	}
}
